package com.my.demoo.config;

import com.my.demoo.entity.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class StudentConfig {
    @Bean
    public Student student(){
        Student student=new Student();
        student.setName("张三");
        student.setAge(20);
        return student;
    }
}
